<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:74:"E:\UPUPW_NP7.0\htdocs\61\public/../application/admin\view\mator\index.html";i:1511235498;s:76:"E:\UPUPW_NP7.0\htdocs\61\public/../application/admin\view\public\header.html";i:1509000081;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>测试</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_LAY__']; ?>/css/layui.css" media="all" />
	<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_CSS__']; ?>/login.css" media="all" />
	<link rel="stylesheet" href="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_CSS__']; ?>/main.css" media="all" />
</head>
<body class="childrenBody">
	<blockquote class="layui-elem-quote news_search">
		<div class="layui-inline">
		    <div class="layui-input-inline">
		    	<input type="text" value="" placeholder="请输入关键字" class="layui-input search_input">
		    </div>
		    <a class="layui-btn search_btn">查询</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn layui-btn-normal newsAdd_btn">添加车型</a>
		</div>
	</blockquote>
	<div class="layui-form news_list">
	  	<table class="layui-table">
		    <colgroup>
				<col width="40">
				<col>
				<col width="10%">
				<col width="6%">
				<col width="10%">
				<col width="6%">
				<col width="8%">
				<col width="5%">
				<col width="5%">
				<col width="5%">
				<col width="5%">
				<col width="7%">
				<col width="5%">
				<col width="8%">
				<col width="15%">
		    </colgroup>
		    <thead>
				<tr>
					<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
					<th>车型编码</th>
					<th>车型名称</th>
					<th>制造商</th>
					<th>系列</th>
					<th>年份</th>
					<th>发动机型号</th>
					<th>排量</th>
					<th>功率</th>
					<th>马力</th>
					<th>类型</th>
					<th>起始年份</th>
					<th>启用</th>
					<th>创建时间</th>
					<th>操作</th>
				</tr> 
		    </thead>
		    <tbody class="news_content">
				<?php if(is_array($mator) || $mator instanceof \think\Collection || $mator instanceof \think\Paginator): $i = 0; $__LIST__ = $mator;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$m): $mod = ($i % 2 );++$i;?>
					<tr>
						<td><input type="checkbox" name="checked" lay-skin="primary" lay-filter="choose"></td><td align="left"><?php echo $m['motor_code']; ?></td>
						<td><?php echo $m['motor_name']; ?></td>
						<td><?php echo $m['make_name']; ?></td>
						<td><?php echo $m['series_name']; ?></td>
						<td><?php echo $m['year_name']; ?></td>
						<td><?php echo $m['engine']; ?></td>
						<td><?php echo $m['volume']; ?></td>
						<td><?php echo $m['capacity']; ?></td>
						<td><?php echo $m['horse_power']; ?></td>
						<td><?php echo $m['m_type']; ?></td>
						<td><?php echo $m['m_year']; ?></td>
						<td>
							<?php if($m['motor_status'] == '1'): ?>
								<input type="checkbox" name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow"	checked = "" value="<?php echo $m['id']; ?>" >
								<div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><i></i><em>是</em></div>
							<?php else: ?>
								<input type="checkbox" name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" value="<?php echo $m['id']; ?>" >
								<div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><i></i><em>否</em></div>
							<?php endif; ?>
						</td>
						<td><?php echo $m['create_time']; ?></td>
						<td>
							<a class="layui-btn layui-btn-mini news_edit" data-id="<?php echo $m['id']; ?>"><i class="iconfont icon-edit"></i> 编辑</a>
							<a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="<?php echo $m['id']; ?>"><i class="layui-icon">&#xe640;</i> 删除</a>
						</td>
					</tr>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>
	</div>
	<div id="page">
		
	</div>
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_LAY__']; ?>/layui.js"></script>
	<script type="text/javascript" src="<?php echo $PUBLIC_STATIC_SRC['__ADMIN_JS__']; ?>/mator/matorList.js"></script>
</body>
</html>